import request from '@/utils/request'

export default {
  imgInfo(params){
    return request({
      url: '/tb-user/imgInfo',
      method: 'get',
      params
    })
  },
  tbUserUpdate(data){
    return request({
      url: '/tb-user/tbUserUpdate',
      method: 'post',
      data
    })
  },
  tbUserGetById(params){
    return request({
      url: '/tb-user/tbUserGetById',
      method: 'get',
      params
    })
  },
  tbUserDeleteFalse(params){
    return request({
      url: '/tb-user/tbUserDeleteFalse',
      method: 'get',
      params
    })
  },
  tbDmReturnList(){
    return request({
      url: '/tb-dm/tbDmReturnList',
      method: 'get',
    })
  },
  tbUserImg(params) {
    // console.log(params)
    return request({
      url: "/tb-user/tbUserImg",
      method: "post",
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      // contentType: false,
      withCredentials:false,
      // processData: false,
      // dataType: "json",
      data: params,
    })
  },
  tbUserAdd(data) {
    return request({
      url: "/tb-user/tbUserAdd",
      method: "post",
      data
    })
  },
  tbUserList(params){
    return request({
      url: '/tb-user/tbUserList',
      method: 'get',
      params
    })
  },
  tbDmUpdate(data){
    return request({
      url: '/tb-dm/tbDmUpdate',
      method: 'post',
      data
    })
  },
  tbDmAddDm(data){
    return request({
      url: '/tb-dm/tbDmAddDm',
      method: 'post',
      data
    })
  },
  depUserList(params){
    return request({
      url: '/tb-dm/depUserList',
      method: 'get',
      params
    })
  },
  tbDmSelect(params){
    return request({
      url: '/tb-dm/tbDmSelect',
      method: 'get',
      params
    })
  },
  tbDmDeleteTrue(params){
    return request({
      url: '/tb-dm/tbDmDeleteTrue',
      method: 'get',
      params
    })
  },
  tbDmList(params){
    return request({
      url: '/tb-dm/tbDmList',
      method: 'get',
      params
    })
  },
}
